package com.zx.reader.service;

import com.zx.reader.entity.Evaluation;

import java.util.List;
import java.util.Map;

public interface EvaluationService {
    /**
     *
     * @param bookId
     * @return
     */
    public List<Map> selectByBookId(Long bookId);

    /**
     *
     * @param memberId
     * @param bookId
     * @param score
     * @param content
     * @return
     */
    public Evaluation evaluate(Long memberId ,Long bookId, Integer score, String content);

    /**
     *
     * @param evaluationId
     * @return
     */
    public Evaluation enjoy(Long evaluationId);
}
